package com.wash.shoes.domain.dy.black;

import java.util.List;

import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * @author lijianguo
 * @Date 25/03/2025 14:43 抖音的订单参数
 **/
@Data
@ApiModel(value = "抖音-抖音的订单参数")
public class DyPreOrderDto {

    String order_id;

    List<DyGoods> goods;

    Integer total_amount;

    Integer discount;

    String cp_extra;

    Long create_order_time;

    String open_id;

    String phone_num;

    String contact_name;

    String app_id;

    String union_id;

    List<ItemOrderInfoList> item_order_info_list;

    List<Sku> sku_list;
    int delivery_type;
    int use_local_life_account;
    int biz_line;
    int fulfill_type;

    /**
     * "sku_id": "202504025005625823", "sku_id_type": 1, "quantity": 1, "origin_price": 2990, "price": 2990, "atts":
     * null, "goods_info": { "img_url":
     * "https://p3-developer-sign.bytemaimg.com/tos-cn-i-lgni0yg6nh/605f2878d92a445b938ee72e3b084187~tplv-ke512zj2cu-jpg.jpeg?lk3s=16f57927&x-expires=1910662441&x-signature=oUvmB29y0FjZJMSK3gH1q2I7q04%3D",
     * "title": "【京东取送】精致洗护1双运动鞋", "sub_title": "", "labels": "", "date_rule": "", "poi_id": "7477399071041259560",
     * "goods_id": "202504025005625823", "goods_id_type": 1 }
     */
    @Data
    public static class Sku {
        private String sku_id;
        private Integer sku_id_type;
        private Integer quantity;
        private Integer origin_price;
        private Integer price;
        private String[] atts;
        private GoodsInfo goods_info;
    }

    @Data
    public static class GoodsInfo {
        private String img_url;
        private String title;
        private String sub_title;
        private String labels;
        private String date_rule;
        private String poi_id;
        private String goods_id;
        private Integer goods_id_type;
    }

    @Data
    public static class DyGoods {

        String img_url;

        String title;

        String sub_title;

        String labels;

        String date_rule;

        Integer origin_price;

        Integer price;

        Integer quantity;

        String poi_id;

        String goods_id;

        String[] item_order_id_list;
    }

    @Data
    public static class ItemOrderInfoList {

        String goods_id;

        String goods_id_type;

        String sku_id;

        String sku_id_type;

        String item_order_id;

        Integer price;

        String coupon_item_id;

    }
}
